package com.example.forumsystem.demos.web.mapper;

import com.example.forumsystem.demos.web.model.BoardInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BoardInfoMapper {
    int insert(BoardInfo row);

    int insertSelective(BoardInfo row);

    BoardInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BoardInfo row);

    int updateByPrimaryKey(BoardInfo row);

    List<BoardInfo> selectBoardByNum(@Param("num") Integer num);
}